home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / Illustrator 6.0 SDK r1 Mac / AI Plugin Interface / AIText.h < prev    next >
Text File  |  1995-12-21  |  2KB  |  114 lines

  1. /**
  2.  
  3.     AIText.h
  4.     Copyright (c) 1995 Adobe Systems Incorporated.
  5.     All Rights Reserved
  6.  
  7.     Adobe Illustrator 6.0 Text Object Suite.
  8.  
  9.  **/
  10.  
  11. #ifndef __AIText__
  12. #define __AIText__
  13.  
  14.  
  15. /*******************************************************************************
  16.  **
  17.  **    Imports
  18.  **
  19.  **/
  20.  
  21. #include "AITypes.h"
  22. #include "AIArt.h"
  23. #include "AIFixedMath.h"
  24. #include "AITextRun.h"
  25.  
  26.  
  27. #if Macintosh
  28.     #ifdef __cplusplus
  29.     extern "C" {
  30.     #endif
  31.     
  32.     #if PRAGMA_ALIGN_SUPPORTED
  33.     #pragma options align=mac68k
  34.     #endif
  35.     
  36.     #if PRAGMA_IMPORT_SUPPORTED
  37.     #pragma import on
  38.     #endif
  39. #endif
  40.  
  41.  
  42. /*******************************************************************************
  43.  **
  44.  **    Constants
  45.  **
  46.  **/
  47.  
  48. #define kAITextSuite    "AI Text Suite"
  49. #define kAITextVersion    2
  50.  
  51.  
  52. typedef enum {
  53.     kUnknownTextType = -1,
  54.     kPointTextType,
  55.     kInPathTextType,
  56.     kOnPathTextType
  57. } AITextType;
  58.  
  59.  
  60. // Text errors.
  61. #define kNoTextErr                'NOTX'
  62. #define kTypeTextErr            'TYTX'
  63. #define kObjectTextErr            'OBTX'
  64. #define kPathTextErr            'PTTX'
  65. #define kFlowTextErr            'FLTX'
  66. #define kRunTextErr                'RNTX'
  67. #define kLineTextErr            'LNTX'
  68. #define kStreamTextErr            'SMTX'
  69. #define kIndexTextErr            'IXTX'
  70. #define kCountTextErr            'CTTX'
  71. #define kLimitTextErr            'LMTX'
  72. #define kMemoryTextErr            'METX'
  73. #define kSelectTextErr            'SLTX'
  74. #define kBlockTextErr            'BLTX'
  75. #define kOnlyTextErr            'ONTX'
  76. #define kUnimplementedTextErr    'UNTX'
  77.  
  78.  
  79. /*******************************************************************************
  80.  **
  81.  **    Suite
  82.  **
  83.  **/
  84.  
  85. typedef struct {
  86.  
  87.     MACPASCAL FXErr (*GetTextType) ( AIArtHandle text, AITextType *oldType );
  88.     MACPASCAL FXErr (*SetTextType) ( AIArtHandle text, AITextType newType );
  89.  
  90.     MACPASCAL FXErr (*HasTextSelection) ( Boolean *selection );
  91.     MACPASCAL FXErr (*ShowTextSelection) ( void );
  92.     MACPASCAL FXErr (*GetTextSelection) ( AIArtHandle *parent, unsigned long *selStart, unsigned long *selLimit );
  93.     MACPASCAL FXErr (*SetTextSelection) ( AIArtHandle parent, unsigned long selStart, unsigned long selLimit );
  94.  
  95. } AITextSuite;
  96.  
  97.  
  98. #if Macintosh
  99.     #if PRAGMA_IMPORT_SUPPORTED
  100.     #pragma import off
  101.     #endif
  102.     
  103.     #if PRAGMA_ALIGN_SUPPORTED
  104.     #pragma options align=reset
  105.     #endif
  106.     
  107.     #ifdef __cplusplus
  108.     }
  109.     #endif
  110. #endif
  111.  
  112.  
  113. #endif
  114.